import { DescItem } from '@/components/Description';

export const orderSchema: DescItem[] = [
  {
    field: 'shippingCode',
    label: '单号',
  },
  {
    field: 'consigneeWarehouse',
    label: '出库仓库',
  },
];

export const carerSchema: DescItem[] = [
  {
    field: 'driverName',
    label: '司机姓名',
  },
  {
    field: 'vehicleNo',
    label: '车牌',
  },
  {
    field: 'driverIdCard',
    label: '身份证',
  },
  {
    field: 'vehicleModel',
    label: '车辆类型',
    render: (curVal) => {
      const typeObj = { 1: '挂车', 2: '厢式车', 3: '其他', 5: 'SUV' };
      return typeObj[curVal];
    },
  },
  {
    field: 'driverPhone',
    label: '电话',
  },
  {
    field: 'goodsWeight',
    label: '运量(吨)',
  },
];
